<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/includes.jsp" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="${ctx}/js/print/LodopFuncs.js" type="text/javascript"></script>
<style> table,td,th {border: 1px solid black;border-style: solid;border-collapse: collapse}</style>
<title>Insert title here</title>
<script type="text/javascript">
function CheckIsInstall() {	 
	try{ 
	     var LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM')); 
		if ((LODOP!=null)&&(typeof(LODOP.VERSION)!="undefined")) alert("本机已成功安装过Lodop控件!\n  版本号:"+LODOP.VERSION); 
	 }catch(err){ 
		//alert("Error:本机未安装或需要升级!"); 
		 } 
}
function Design1() {		
	LODOP=getLodop();  
//	LODOP.SET_SHOW_MODE("HIDE_ITEM_LIST",true);//设置对象列表默认处于关闭状态
//	LODOP.SET_SHOW_MODE("TEXT_SHOW_BORDER",1); //设置字符编辑框默认为single	
	LODOP.PRINT_DESIGN();		
}

function LodopPrint(){

	LODOP.PRINT_INITA(0,19,800,600,"");
	LODOP.ADD_PRINT_SETUP_BKIMG("C:\\Users\\fei\\Desktop\\CG00001.jpg");
	LODOP.SET_SHOW_MODE("BKIMG_LEFT",40);
	LODOP.SET_SHOW_MODE("BKIMG_TOP",5);
	LODOP.SET_SHOW_MODE("BKIMG_WIDTH",717);
	LODOP.SET_SHOW_MODE("BKIMG_HEIGHT",491);
	LODOP.SET_SHOW_MODE("BKIMG_IN_PREVIEW",true);
	LODOP.ADD_PRINT_TEXT(114,169,324,20,"新加文本1");
	LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(110,537,63,20,"新加文本2");
	LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(110,611,63,20,"新加文本3");
	LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(110,657,86,20,"新加文本4");
	LODOP.SET_PRINT_STYLEA(0,"FontName","微软雅黑");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(178,105,100,20,"新加文本5");
	LODOP.ADD_PRINT_TEXT(177,233,100,20,"新加文本6");
	LODOP.ADD_PRINT_TEXT(178,341,100,20,"新加文本7");
	LODOP.ADD_PRINT_TEXT(208,106,100,20,"新加文本8");
	LODOP.ADD_PRINT_TEXT(455,146,126,20,"新加文本9");
	LODOP.ADD_PRINT_TEXT(455,350,100,20,"新加文本10");
	LODOP.ADD_PRINT_TEXT(455,521,100,20,"新加文本11");


}

function PrintView(){
	LODOP=getLodop();
	LodopPrint();
	LODOP.PREVIEW();
	//LODOP.PRINT_SETUP();
}
</script>
</head>
<body>
<a href="javascript:CheckIsInstall()">查看本机是否安装控件</a>
<br/>
<a href="javascript:Design1()">打印设计</a>
<a href="javascript:PrintView()">打印预览</a>
<table border='1' width='760'>
<tr align='center'height='30'>
  <td width='60'>系列</td>
  <td  width='160' >名称</td>
  <td width='180'>型号</td>
  <td width='120'>规格</td>
  <td width='40'>单位</td>
  <td width='60'>数量</td>
  <td>描述</td>
</tr>
<tr height='30'  align='center'>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr height='30'  align='center'>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr height='30'  align='center'>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr height='30'  align='center'>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr height='30'  align='center'>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr height='30'  align='center'>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr height='30'  align='center'>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr height='30'  align='center'>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr height='30'  align='center'>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr height='30'  align='center'>
  <td colspan="7"> </td>
</tr>
</table>
</body>
</html>